home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5424 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.2 KB

  1. Path: sn.no!not-for-mail
  2. From: christon@sn.no (Christopher Naas)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Typo in the autodocs
  5. Date: 13 Mar 1996 19:54:39 +0100
  6. Organization: SN Internett
  7. Message-ID: <1982.6646T659T2072@sn.no>
  8. NNTP-Posting-Host: sinsen.sn.no
  9. X-Newsreader: THOR 2.21 (Amiga;SOUP)
  10.  
  11. There's a small typo' in the Autodocs. Not very important, but AT should fix
  12. it before the next release. Posted here since they're playing hard to get hold
  13. of.
  14.  
  15. ----------------------------------- Bobbit -----------------------------------
  16. dos.library/AddPart                                       dos.library/AddPart
  17.  
  18.    NAME
  19.     AddPart -- Appends a file/dir to the end of a path (V36)
  20.  
  21.    SYNOPSIS
  22.     success = AddPart( dirname, filename, size )
  23.     D0                   D1        D2      D3
  24.  
  25.     BOOL AddPart( STRPTR, STRPTR, ULONG )
  26.  
  27.    FUNCTION
  28.     This function adds a file, directory, or subpath name to a directory
  29.     path name taking into account any required separator characters.  If
  30.     filename is a fully-qualified path it will totally replace the current
  31.     value of dirname.
  32.  
  33.    INPUTS
  34.     dirname  - the path to add a file/directory name to.
  35.     filename - the filename or directory name to add.  May be a relative
  36.            pathname from the current directory (example: foo/bar).
  37.            Can deal with leading '/'(s), indicating one directory up
  38.            per '/', or with a ':', indicating it's relative to the
  39.            root of the appropriate volume.
  40.     size     - size in bytes of the space allocated for dirname.  Must
  41.            not be 0.
  42.  
  43.    RESULT
  44.     success - non-zero for ok, FALSE if the buffer would have overflowed.
  45.           If an overflow would have occured, dirname will not be
  46.           changed.
  47.  
  48.    BUGS
  49.     Doesn't check if a subpath is legal (i.e. doesn't check for ':'s) and
  50.     doesn't handle leading '/'s in 2.0 through 2.02 (V36).  V37 fixes
  51.     this, allowing filename to be any path, including absolute.
  52.  
  53.    SEE ALSO
  54.     Filepart(), PathPart()
  55.        /
  56. * Should be 'P' *
  57.  
  58. ----------------------------------- Bobbit -----------------------------------
  59.  
  60.  
  61. --
  62. Christopher Landmark Naas    o  EMail: christon@sn.no
  63. LoungeBar Development        o  WWW:   http://www.sn.no/~christon/
  64. Former Reg. Amiga Developer  o  IRC:   KarmaComa
  65.